// COPYRIGHT © 201 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute and use this code without modification,
// provided you adhere to the terms of the MLA and include this
// copyright notice.
//
// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
//
// For additional information, contact:
// Environmental Systems Research Institute, Inc.
// Attn: Contracts and Legal Services Department
// 380 New York Street
// Redlands, California, USA 92373
// USA
//
// email: contracts@esri.com
//
// See http://js.arcgis.com/3.34/esri/copyright.txt for details.

define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/_base/json","dojo/has","../kernel"],(function(e,n,s,t,l,o){var i=e(null,{declaredClass:"esri.tasks.LengthsParameters",polylines:null,lengthUnit:null,geodesic:null,calculationType:null,toJson:function(){var e=s.map(this.polylines,(function(e){return e.toJson()})),n={};n.polylines=t.toJson(e);var l=this.polylines[0].spatialReference;return n.sr=l.wkid?l.wkid:t.toJson(l.toJson()),this.lengthUnit&&(n.lengthUnit=this.lengthUnit),this.geodesic&&(n.geodesic=this.geodesic),this.calculationType&&(n.calculationType=this.calculationType),n}});return l("extend-esri")&&n.setObject("tasks.LengthsParameters",i,o),i}));